<!--
 * @Author: HeAo
 * @Date: 2021-10-15 11:18:14
 * @LastEditTime: 2021-10-15 11:21:39
 * @LastEditors: HeAo
 * @Description: 
 * @FilePath: \web2103-2105\web2105\3-2-Vue\day07\5-axios实例.html
 * 别乱动！
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../js/axios.js"></script>
  <script>
    const instence1 = axios.create({
      baseURL: 'http://47.94.46.113:8002'
    })

    const instence2 = axios.create({
      baseURL: 'http://47.94.46.113:8888'
    })

    instence1.post('/user/login', {
      username: 'admin1',
      password: 123321
    }).then(res => {
      console.log('家政', res.data.data.token);
    })

    instence2.post('/user/login', {
      username: 'admin1',
      password: 123321
    }).then(res => {
      console.log('行学', res.data.data.token);
    })
  </script>
</head>

<body>

</body>

</html>